home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_1528.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  306 b   |  6 lines

  1. Tell the C++ compiler that it is a C function:  extern "C" void f(); Be sure to include the full function prototype.  A block of many C functions can be grouped via braces, as in:
  2.     extern "C" {
  3.       void* malloc(size_t);
  4.       char* strcpy(char* dest, const char* src);
  5.       int   printf(const char* fmt, ...);
  6.     }